<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<title>TMFFTwoColumnAlignment</title>
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="TMFFTwoColumnAlignment";
    }
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../index-all.html">Index</a></li>
<li><a href="../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../mmj/tmff/TMFFStateParams.html" title="class in mmj.tmff"><span class="strong">Prev Class</span></a></li>
<li><a href="../../mmj/tmff/TMFFUnformatted.html" title="class in mmj.tmff"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../index.html?mmj/tmff/TMFFTwoColumnAlignment.html" target="_top">Frames</a></li>
<li><a href="TMFFTwoColumnAlignment.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#fields_inherited_from_class_mmj.tmff.TMFFMethod">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">mmj.tmff</div>
<h2 title="Class TMFFTwoColumnAlignment" class="title">Class TMFFTwoColumnAlignment</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li><a href="../../mmj/tmff/TMFFMethod.html" title="class in mmj.tmff">mmj.tmff.TMFFMethod</a></li>
<li>
<ul class="inheritance">
<li>mmj.tmff.TMFFTwoColumnAlignment</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="strong">TMFFTwoColumnAlignment</span>
extends <a href="../../mmj/tmff/TMFFMethod.html" title="class in mmj.tmff">TMFFMethod</a></pre>
<div class="block">TMFFTwoColumnAlignment aligns portions of a sub-expression into a two columns
 when splitting the sub-expression across multiple lines: the left column is
 used for constants and the right column is used for variables. However, if
 the expression contains only constants or only variables then only one column
 is used.
 <p>
 TMFFTwoColumnAlignment renders a parsed sub-expression and if the expression
 exceeds the input length or tree depth parameters, the sub-expression is
 broken up across multiple lines.
 <p>
 <p>
 
 <pre>
 Example:
 
     maxDepth = 1
 
        render "( a -> b )" as follows:
 
               "(  a
                -> b )"
 
            where "a" and "b" are metavariables that
            may be replaced by sub-expressions of
            arbitrary length and depth.
 
            Note that the trailing constant is appended
            to the current line (or if no more room exists
            then it is indented 4 columns from the right
            column's position.
 
 Example:
     maxDepth = 1
 
        render "a (_ b" as follows:
 
               "   a
                (_ b"
 
            where "a" and "b" are metavariables that
            may be replaced by sub-expressions of
            arbitrary length and depth.
 </pre></div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!--   -->
</a>
<h3>Field Summary</h3>
<ul class="blockList">
<li class="blockList"><a name="fields_inherited_from_class_mmj.tmff.TMFFMethod">
<!--   -->
</a>
<h3>Fields inherited from class&nbsp;mmj.tmff.<a href="../../mmj/tmff/TMFFMethod.html" title="class in mmj.tmff">TMFFMethod</a></h3>
<code><a href="../../mmj/tmff/TMFFMethod.html#maxDepth">maxDepth</a></code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!--   -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../mmj/tmff/TMFFTwoColumnAlignment.html#TMFFTwoColumnAlignment()">TMFFTwoColumnAlignment</a></strong>()</code>
<div class="block">Default constructor.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../mmj/tmff/TMFFTwoColumnAlignment.html#TMFFTwoColumnAlignment(int)">TMFFTwoColumnAlignment</a></strong>(int&nbsp;maxDepth)</code>
<div class="block">Standard constructor for TMFFTwoColumnAlignment.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../mmj/tmff/TMFFTwoColumnAlignment.html#TMFFTwoColumnAlignment(java.lang.String)">TMFFTwoColumnAlignment</a></strong>(java.lang.String&nbsp;maxDepthString)</code>
<div class="block">Constructor for TMFFTwoColumnAlignment from user parameters.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected int</code></td>
<td class="colLast"><code><strong><a href="../../mmj/tmff/TMFFTwoColumnAlignment.html#renderSubExprWithBreaks(mmj.tmff.TMFFStateParams, mmj.lang.ParseNode, int)">renderSubExprWithBreaks</a></strong>(<a href="../../mmj/tmff/TMFFStateParams.html" title="class in mmj.tmff">TMFFStateParams</a>&nbsp;tmffSP,
                       <a href="../../mmj/lang/ParseNode.html" title="class in mmj.lang">ParseNode</a>&nbsp;currNode,
                       int&nbsp;leftmostColNbr)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../mmj/tmff/TMFFTwoColumnAlignment.html#updateMaxDepth(int)">updateMaxDepth</a></strong>(int&nbsp;maxDepth)</code>
<div class="block">Updates maxDepth for a TMFFMethod if the Method allows updates.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_mmj.tmff.TMFFMethod">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;mmj.tmff.<a href="../../mmj/tmff/TMFFMethod.html" title="class in mmj.tmff">TMFFMethod</a></h3>
<code><a href="../../mmj/tmff/TMFFMethod.html#ConstructMethodWithUserParams(java.lang.String[])">ConstructMethodWithUserParams</a>, <a href="../../mmj/tmff/TMFFMethod.html#renderFormula(mmj.tmff.TMFFStateParams, mmj.lang.ParseTree, mmj.lang.Formula)">renderFormula</a>, <a href="../../mmj/tmff/TMFFMethod.html#renderSubExpr(mmj.tmff.TMFFStateParams, mmj.lang.ParseNode, int)">renderSubExpr</a>, <a href="../../mmj/tmff/TMFFMethod.html#validateMaxDepth(int)">validateMaxDepth</a>, <a href="../../mmj/tmff/TMFFMethod.html#validateMaxDepth(java.lang.String)">validateMaxDepth</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!--   -->
</a>
<h3>Constructor Detail</h3>
<a name="TMFFTwoColumnAlignment()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>TMFFTwoColumnAlignment</h4>
<pre>public&nbsp;TMFFTwoColumnAlignment()</pre>
<div class="block">Default constructor.</div>
</li>
</ul>
<a name="TMFFTwoColumnAlignment(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>TMFFTwoColumnAlignment</h4>
<pre>public&nbsp;TMFFTwoColumnAlignment(int&nbsp;maxDepth)</pre>
<div class="block">Standard constructor for TMFFTwoColumnAlignment.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>maxDepth</code> - maximum sub-tree depth for a sub-expression that will not
            trigger a line-break, not counting leaf nodes, and
            non-Notation Syntax Axioms such as Type Conversions.</dd></dl>
</li>
</ul>
<a name="TMFFTwoColumnAlignment(java.lang.String)">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>TMFFTwoColumnAlignment</h4>
<pre>public&nbsp;TMFFTwoColumnAlignment(java.lang.String&nbsp;maxDepthString)</pre>
<div class="block">Constructor for TMFFTwoColumnAlignment from user parameters.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>maxDepthString</code> - maximum sub-tree depth for a sub-expression that
            will not trigger a line-break, not counting leaf nodes, and
            non-Notation Syntax Axioms such as Type Conversions.</dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="updateMaxDepth(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>updateMaxDepth</h4>
<pre>public&nbsp;boolean&nbsp;updateMaxDepth(int&nbsp;maxDepth)</pre>
<div class="block">Updates maxDepth for a TMFFMethod if the Method allows updates.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../mmj/tmff/TMFFMethod.html#updateMaxDepth(int)">updateMaxDepth</a></code>&nbsp;in class&nbsp;<code><a href="../../mmj/tmff/TMFFMethod.html" title="class in mmj.tmff">TMFFMethod</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>maxDepth</code> - parameter.</dd>
<dt><span class="strong">Returns:</span></dt><dd>boolean - true only if update performed.</dd></dl>
</li>
</ul>
<a name="renderSubExprWithBreaks(mmj.tmff.TMFFStateParams, mmj.lang.ParseNode, int)">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>renderSubExprWithBreaks</h4>
<pre>protected&nbsp;int&nbsp;renderSubExprWithBreaks(<a href="../../mmj/tmff/TMFFStateParams.html" title="class in mmj.tmff">TMFFStateParams</a>&nbsp;tmffSP,
                          <a href="../../mmj/lang/ParseNode.html" title="class in mmj.lang">ParseNode</a>&nbsp;currNode,
                          int&nbsp;leftmostColNbr)</pre>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../mmj/tmff/TMFFMethod.html#renderSubExprWithBreaks(mmj.tmff.TMFFStateParams, mmj.lang.ParseNode, int)">renderSubExprWithBreaks</a></code>&nbsp;in class&nbsp;<code><a href="../../mmj/tmff/TMFFMethod.html" title="class in mmj.tmff">TMFFMethod</a></code></dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../index-all.html">Index</a></li>
<li><a href="../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../mmj/tmff/TMFFStateParams.html" title="class in mmj.tmff"><span class="strong">Prev Class</span></a></li>
<li><a href="../../mmj/tmff/TMFFUnformatted.html" title="class in mmj.tmff"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../index.html?mmj/tmff/TMFFTwoColumnAlignment.html" target="_top">Frames</a></li>
<li><a href="TMFFTwoColumnAlignment.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#fields_inherited_from_class_mmj.tmff.TMFFMethod">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
